package top.wkl.springboot3.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;
import top.wkl.springboot3.base.R;
import top.wkl.springboot3.entity.TbFiles;

public interface TbFilesService {
    String UPLOAD_DIR = "/home/wkl/java-projects/uploadfiles";
    String FILE_URL = "https://api.zhizhizhi.fun/uploads/";

    R<TbFiles> upload(MultipartFile file);

    void download(Integer id, HttpServletResponse response);
}
